const fs = require("fs");
module.exports =(res,urlObj,bodyObj,sql) => {
  const text=fs.readFileSync("./serve/uihtml/"+urlObj.params.id+".html","utf-8")
  res.end(
    JSON.stringify({
      code: 0,
      msg: "请求成功",
      data: text.replace(/<br>/g,"").replace(/(<p .+?>|<p>)<\/p>/g,"")
    })
  );
}
